﻿/*
 * This software is the confidential and proprietary
 * information of NetBay
 * Such confidential information should not be disclosed
 * NetBay copyright(c) 2010
 */

#region Using
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using System.Web;
using NetBay.Core.BusinessEntities;
using Rio.Framework.RioManager;

#endregion

namespace Rio.Applications.Web.Services
{
    // TODO: Create methods containing your application logic.
    [EnableClientAccess(RequiresSecureEndpoint = false)]
    public class LanguageDomainService : DomainService
    {
        ///// <summary>
        ///// Return the translation of multiple labels
        ///// </summary>
        ///// <param name="p_sLabelsToTranslate">list of labels to translate</param>
        ///// <returns>Translated list of string</returns>
        //[Invoke]
        //public Dictionary<string, string> GetTranslatedStrings(List<string> p_sLabelsToTranslate)
        //{
        //    Dictionary<string, string> l_szRet = new Dictionary<string, string>();
        //    try
        //    {
        //        foreach (string L_sStr in p_sLabelsToTranslate)
        //        {
        //            l_szRet.Add(L_sStr, LanguageManager.GetString(L_sStr, HttpContext.Current.Session[ParameterSession.Culture.szGetDescription()].ToString()));
        //        }
        //    }
        //    catch (Exception)
        //    {
        //        //TODO
        //        //System.Console.WriteLine(GetType().FullName + "(p_szLabelToTranslate<" + L_sStr + ">) EXCEPTION -> " + Environment.NewLine + ex.Message);
        //    }
        //    return l_szRet;
        //}
    }
}


